package org.dromara.business.domain.bo;


import org.dromara.business.domain.ZjContentManage;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 内容管理业务对象 zj_content_manage
 *
 * @author sky丶Happy
 * @date 2024-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ZjContentManage.class, reverseConvertGenerate = false)
public class ZjContentManageBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称（例如：管理团队、集团动态、通知公告）字典
     */
    @NotBlank(message = "名称（例如：管理团队、集团动态、通知公告）字典不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 副标题
     */
    @NotBlank(message = "副标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subtitle;

    /**
     * 封面（存oss表id）
     */
    private String ossId;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 状态内容是否发布（0正常 1停用）
     */
    @NotBlank(message = "状态内容是否发布（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
